package com.design.pattern.factory.method;/** * create by yufeng on 2021/7/3 20:00 */public class FactoryMethodTest {    public static void main(String[] args) {        ICourseFactory factory = new PythonCourseFactory();        ICourse course = factory.create();        course.record();        factory = new JavaCourseFactory();        course = factory.create();        course.record();    }}